package cn.easy.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 张澎_9970
 * @date 2021.12.14 下午 8:42 星期二
 * @desc: 监听消息
 * @Component: 把它交给Spring容器
 */
@Component
public class RabbitMqListener {
    @RabbitListener(queues = "Boot_Topic_Queue_1")
    public void listenerMsg(String msg) {
        System.out.println(msg);
    }
}
